import { commonUtil } from "../utils/index.js";

let CONFIG,
  STATUS,
  SYSTEM,
  LOGIN_RETRY_TIME,
  MAX_INPUT_PER_DATE,
  SLEEP,
  MIN_SLEEP;
try {
  CONFIG = commonUtil.getYamlConfig({
    fileName: "commonConfig.yaml",
    folderPath: "config/",
  });
  ({ STATUS, SYSTEM, LOGIN_RETRY_TIME, MAX_INPUT_PER_DATE, SLEEP, MIN_SLEEP } =
    CONFIG);
} catch (e) {
  console.error(e);
}

export {
  CONFIG,
  STATUS,
  SYSTEM,
  LOGIN_RETRY_TIME,
  MAX_INPUT_PER_DATE,
  SLEEP,
  MIN_SLEEP,
};
